//
//  DDQuestionView.h
//  dingdang
//
//  Created by 阮 沧晖 on 15/7/6.
//  Copyright (c) 2015年 阮 沧晖. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "TNColorView.h"
#import "DDTopic.h"
#import "MWPhotoBrowser.h"
#import <AudioToolbox/AudioToolbox.h>
#import <AVFoundation/AVFoundation.h>
@interface DDQuestionView : TNColorView<UITableViewDataSource,UITableViewDelegate,UIGestureRecognizerDelegate,MWPhotoBrowserDelegate,UITextViewDelegate>
@property(nonatomic,strong)UITableView *tableView;
@property(nonatomic,strong)UITapGestureRecognizer *tapRecognizer;

@property(nonatomic,strong)NSMutableArray *datas;
@property(nonatomic,strong)NSMutableArray *keys;
@property(nonatomic,strong)NSString *questionType;

@property(nonatomic,strong)DDTopicQuestion *question;

@property(nonatomic,strong)UITapGestureRecognizer* singleRecognizer;
@property(nonatomic,strong)NSArray *imageArray;
@property(nonatomic,strong)NSMutableArray *photos;

@property(nonatomic,strong)NSString * result;

@property(nonatomic,assign)NSInteger page;
@property(nonatomic,assign)NSInteger total;

@property(nonatomic,strong)NSString *title;

@property (nonatomic,strong)UIViewController *controller;
@property (nonatomic,strong)UITextView *fillTextView;

@property (retain, nonatomic) AVAudioPlayer *avPlay;
@property(nonatomic,strong)DDTopicDataCellModel *topic;

@property (nonatomic,strong)NSString *topicType;//1：加密题 2：悬赏题 3：公开题


@property (nonatomic,strong)NSMutableArray *answers;//回答集合(图片或者音频文件路径)
@property (nonatomic,assign)NSInteger answerIndex;
//回答问题
-(void)reloadDataForAnswers:(UIImage *)image url:(NSString *)url;
-(void)reloadDataForAnswers:(NSString *)path time:(NSString *)time url:(NSString *)url;


@property (nonatomic,strong)NSString *storeText;

@property (nonatomic,assign)BOOL showAnswer;
@property (nonatomic,strong)NSMutableArray *storeOptions;

@property (nonatomic,strong)UILabel *exlabel;
@property (nonatomic,strong)NSMutableArray *showAnswerLables;

@property (nonatomic,strong)NSMutableArray *explanations;
@property (nonatomic,assign)BOOL selectOption;
@end
